package jon1985;

public class j01account1 {


public static void main(String[] args) {

		int aid = 0; // 계좌번호
		int balance = 0; // 통장잔액
		double interestRate = 0; // 연간 이자율
		int withDraw; // 인출 금액
		double deposit; // 예금 금액
		String dateCreated = "2014-03-10"; // 통장개설 날짜
		double getMonthlyInterestRate; // 월간 이자율
		
		dateCreated="2014-03-11";
		deposit = 0;
		withDraw = 0;
		getMonthlyInterestRate =  interestRate/12;
		balance = balance+withDraw; // 입금
		balance = balance-withDraw;//인출
		
		System.out.println(aid);
		System.out.println(balance);
		System.out.println(interestRate);
		System.out.println(getMonthlyInterestRate);
		System.out.println(dateCreated);
		System.out.println(withDraw);
		System.out.println(deposit);
		
		//시험값 : 1122, 20000, 4.5
		//        2500인출, 3000인출
		aid = 1122;  //계좌번호
		balance = 20000;    //잔액
		interestRate = 4.5;  //연이율
		withDraw = 2500;
		
		//계산
		getMonthlyInterestRate=interestRate / 12;
		balance = balance-withDraw;
		
		//결과출력
		System.out.println(aid);
		System.out.println(balance);
		System.out.println(interestRate);
		System.out.println(getMonthlyInterestRate);
		System.out.println(dateCreated);
		System.out.println(withDraw);
		System.out.println(deposit);
		
		//두 번째 인출
	}
}